package com.example.administrator.runbook.findfragment.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by 俊峰 on 2016/11/8.
 */

public class MessageToAfterClassify implements Parcelable {

    private String name;
    private List<String> mins;
    private String title;

    public MessageToAfterClassify() {
    }

    protected MessageToAfterClassify(Parcel in) {
        name = in.readString();
        mins = in.createStringArrayList();
        title = in.readString();
    }

    public static final Creator<MessageToAfterClassify> CREATOR = new Creator<MessageToAfterClassify>() {
        @Override
        public MessageToAfterClassify createFromParcel(Parcel in) {
            return new MessageToAfterClassify(in);
        }

        @Override
        public MessageToAfterClassify[] newArray(int size) {
            return new MessageToAfterClassify[size];
        }
    };

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getMins() {
        return mins;
    }

    public void setMins(List<String> mins) {
        this.mins = mins;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeStringList(mins);
        dest.writeString(title);
    }
}
